<template>
  <div class="daily-add">
    <logistics-add v-if="tabsActive === '0'"></logistics-add>
    <repair-add v-if="tabsActive === '1'"></repair-add>
    <expense-add v-if="tabsActive === '2'"></expense-add>
  </div>
</template>

<script>
import LogisticsAdd from './logistics/logisticsAdd'
import RepairAdd from './repair/repairAdd.vue'
import ExpenseAdd from './expense/expenseAdd.vue'
export default {
  name: 'dailyAdd',
  components: {
    LogisticsAdd,
    RepairAdd,
    ExpenseAdd,
  },
  data() {
    return {
      tabsActive: '0',
    }
  },
  watch: {},
  created() {
    this.tabsActive = this.$route.query.active
  },
  mounted() {},
  destroyed() {},
  methods: {},
}
</script>

<style lang="scss" scoped>
.daily-add {
  height: 100%;
  /deep/.add_con {
    padding: 7px 12px 60px;
    background-color: #f5f5f5;
    font-size: 13px;
    color: #333333;
    width: 100%;
    overflow-x: hidden;
    min-height: 100%;
    .van-button {
      height: 36px;
      width: 28%;
    }
  }
}
</style>
